#ifndef GRIDINDEX_H
#define GRIDINDEX_H
#include"spatialindex.h"

class gridIndex:public spatialIndex
{
public:
    gridIndex();
    ~gridIndex() override;
    bool initialize(double minX,double maxX,double minY,double maxY,geoMap*map) override;
    QVector<cellForIndex *> getPaintCells() override;
    bool conductIndex();

private:
    QVector<QVector<cellForIndex*>> cells;
    int totalRow,totalCol;//网格的总行数总列数
    double cellSize;//网格大小
};

#endif // GRIDINDEX_H
